import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '专业编号',
    dataIndex: 'majorcode',
    width: 200,
  },
  {
    title: '专业名称',
    dataIndex: 'majorname',
    width: 180,
  },
  {
    title: '专业描述',
    dataIndex: 'majordescription',
    width: 180,
  },
  {
    title: '学制',
    dataIndex: 'majorduration',
    width: 180,
  },
  {
    title: '相关链接',
    dataIndex: 'relatedlinks',
    width: 180,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    width: 180,
  },
];

// export const columns: BasicColumn[] = [
//   {
//     title: '角色名称',
//     dataIndex: 'roleName',
//     width: 200,
//   },
//   {
//     title: '角色值',
//     dataIndex: 'roleValue',
//     width: 180,
//   },
//   {
//     title: '排序',
//     dataIndex: 'orderNo',
//     width: 50,
//   },

//   {
//     title: '创建时间',
//     dataIndex: 'createTime',
//     width: 180,
//   },
//   {
//     title: '备注',
//     dataIndex: 'remark',
//   },
// ];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'majorname',
    label: '专业名称',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'majorduration',
    label: '学制',
    component: 'InputNumber',
    colProps: { span: 5 },
  },
];

const courseCategoryOptions: LabelValueOptions = [
  {
    label: '公共基础课',
    value: '0',
  },
  {
    label: '专业基础课',
    value: '1',
  },
  {
    label: '专业核心课',
    value: '2',
  },
  {
    label: '专业实训课',
    value: '3',
  },
];
const assessmentOptions: LabelValueOptions = [
  {
    label: '考试',
    value: '0',
  },
  {
    label: '考查',
    value: '1',
  },
];

const schoolYearOptions: LabelValueOptions = [
  {
    label: '第一',
    value: '0',
  },
  {
    label: '第二 ',
    value: '1',
  },
  {
    label: '第三',
    value: '2',
  },
];
const ssemesterOptions: LabelValueOptions = [
  {
    label: '秋季',
    value: '0',
  },
  {
    label: '冬季 ',
    value: '1',
  },
];

export const addFormSchema: FormSchema[] = [
  {
    field: 'id',
    show: false,
  },
  {
    field: 'majorcode',
    label: '专业编号',
    required: true,
    component: 'Input',
  },
  {
    field: 'majorname',
    label: '专业名称',
    required: true,
    component: 'Input',
  },
  {
    field: 'majordescription',
    label: '专业描述',
    required: true,
    component: 'Input',
  },
  {
    field: 'majorduration',
    label: '学制',
    required: true,
    component: 'InputNumber',
  },
  {
    field: 'relatedlinks',
    label: '链接',
    required: true,
    component: 'Input',
  },
  {
    field: 'remark',
    label: '备注',
    required: true,
    component: 'Input',
  },
];
